<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            justify-content:flex-end;
            align-items:center;
            background-color: #ccc;
            width: 1000px;
            height: 100px;
        }
        .box-item{
            width: 100px;
            height: 100px;
            background-color: #f00;
            margin: 10px;
        }

    </style>
    
</head>
<body>
    <div class="box">
        <div class="box-item">1</div>
        <div class="box-item">1</div>
        <div class="box-item">1</div>
        <div class="box-item">1</div>
    </div>
</body>
</html>